var EventEmitter = require('events').EventEmitter;

function Test(){
    this.name = 'xw'
}

Test.prototype.__proto__ = EventEmitter.prototype;

// console.log('precess',Test.prototype)

var test = new Test();

test.on('load',function(data){
    console.log(data)
})

test.emit('load','ccc')

// var fs = require('fs');
// var mybuffer = new ArrayBuffer('==ii1j2i3h1i23h','base64');
// fs.writeFile('logo.png',mybuffer)

process.stdout.write('小伟来了')
